package net.pessu.android.shoppoid.gui;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Typeface;

public class IhmObjets {
	
	public static List<ButtonListRemise> listButton = new ArrayList<ButtonListRemise>();
	
	public final static DecimalFormat df = new DecimalFormat("00.00");

	public final static DecimalFormat dfEntier = new DecimalFormat("00");
	
	public final static DecimalFormat dfpc = new DecimalFormat("00");
	
	private static Context context;
	
	public static Typeface tf;
	
	public static Typeface tfTitre;
	
	public static SimpleDateFormat sdf;
	
	public final static SimpleDateFormat sdf_jj_mmmm_aaaa = new SimpleDateFormat("dd MMMMMM yyyy");

	public final static SimpleDateFormat sdf_properties = new SimpleDateFormat("dd/MM/yyyy");
	
	public static ListeArticles listeArticles;
	
	public static boolean isListToRefresh = true;
	
	public static ListeArticles listeArticlesAchete;
		
	public static void ajouterBoiteDeDialogue(Context context, String message) {
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setMessage(message)
				.setCancelable(false)
				.setPositiveButton("Ok",
						new DialogInterface.OnClickListener() {
							public void onClick(DialogInterface dialog, int id) {
								
							}
						});
		AlertDialog alert = builder.create();
		alert.show();
		
	}
	
	public static void setContext(Context current){
		context = current;
	}
	
	public static String getStringContext(int cle){
		return context.getString(cle);
	}
	
	
}
